/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    /*padding-bottom: 80px; 
    /* 为底部指示器留出空间 */
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(45deg, #4b6cb7, #182848);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.card-title {
    margin: 0;
    font-weight: 600;
}

/* 导航样式 */
.nav-pills {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-pills .nav-link {
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: #4b6cb7;
    font-weight: 500;
    margin: 0 0.3rem;
}

.nav-pills .nav-link.active {
    background: linear-gradient(45deg, #4b6cb7, #182848);
}

/* 表格样式 */
.table {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: #4b6cb7;
    color: white;
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* 按钮样式 */
.btn {
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, #4b6cb7, #182848);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(75, 108, 183, 0.3);
}

/* 统计卡片样式 */
.stat-card {
    background: linear-gradient(135deg, rgba(75, 108, 183, 0.95), rgba(24, 40, 72, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* 表单样式 */
.form-control {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #4b6cb7;
    box-shadow: 0 0 0 0.2rem rgba(75, 108, 183, 0.25);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 致谢页面样式 */
.thanks-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.thanks-text {
    line-height: 2;
    color: #495057;
}

.thanks-text p {
    margin-bottom: 1.5rem;
}

.signature {
    font-style: italic;
    color: #6c757d;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b6cb7;
}

/* 巡检统计表格样式 */
.table .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
}

.badge.bg-info {
    background: linear-gradient(45deg, #36d1dc, #5b86e5) !important;
}

.badge.bg-success {
    background: linear-gradient(45deg, #11998e, #38ef7d) !important;
}

/* 背景样式 */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

/* 每个页面的特定背景 */
.bg-index {
    background-image: url('/images/bg-index.jpg');
}

.bg-summary {
    background-image: url('/images/bg-summary.jpg');
}

.bg-top-requests {
    background-image: url('/images/bg-requests.jpg');
}

.bg-latest-ops {
    background-image: url('/images/bg-ops.jpg');
}

.bg-inspection {
    background-image: url('/images/bg-inspection.jpg');
}

.bg-thanks {
    background-image: url('/images/bg-thanks.jpg');
}

/* 玻璃态效果 */
.glass-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 渐变边框效果 */
.gradient-border {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #4b6cb7, #182848) border-box;
    border: 2px solid transparent;
    border-radius: 15px;
}

/* 动态波浪效果 */
.wave-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('/images/wave.svg') repeat-x;
    background-size: 1000px 100px;
    animation: wave 20s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1000px; }
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    /* 容器padding调整 */
    .container {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 1rem !important;
    }

    /* 导航栏样式调整 */
    .nav-pills {
        padding: 0.5rem;
        border-radius: 25px;
        margin-bottom: 1rem !important;
    }

    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* 卡片样式调整 */
    .card {
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    .card-header {
        padding: 1rem;
        border-radius: 10px 10px 0 0 !important;
    }

    .card-body {
        padding: 1rem;
    }

    /* 统计卡片调整 */
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        height: auto;
    }

    .stat-card h2 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 1rem;
    }

    /* 表格响应式处理 */
    .table-responsive {
        margin: 0;
        padding: 0;
        border-radius: 10px;
    }

    .table {
        font-size: 0.9rem;
        width: 100%;
        min-width: 500px; /* 确保表格在小屏幕上可以横向滚动 */
    }

    .table td, .table th {
        padding: 0.75rem;
        white-space: nowrap;
    }

    /* 按钮组样式调整 */
    .d-flex.justify-content-between {
        flex-direction: row !important;
        gap: 0.5rem;
    }

    .btn {
        width: auto !important;
        margin: 0;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .btn i {
        margin: 0 0.3rem;
    }

    .btn span.btn-text {
        display: none;
    }

    .btn.prev-btn::before {
        content: "上一页";
    }

    .btn.next-btn::after {
        content: "下一页";
    }

    /* 致谢页面样式调整 */
    .thanks-content {
        padding: 1rem;
    }

    .thanks-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .thanks-text p {
        margin-bottom: 1rem;
    }

    /* 标题样式调整 */
    h1, .h1 {
        font-size: 1.8rem;
    }

    h2, .h2 {
        font-size: 1.5rem;
    }

    h3, .h3 {
        font-size: 1.3rem;
    }

    h4, .h4 {
        font-size: 1.2rem;
    }

    h5, .h5 {
        font-size: 1.1rem;
    }

    /* 图标大小调整 */
    .bi {
        font-size: 1.2rem;
    }

    /* 徽章样式调整 */
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    /* 波浪效果调整 */
    .wave-bottom {
        height: 50px;
        background-size: 500px 50px;
    }

    /* 背景图片调整 */
    .page-background {
        opacity: 0.05;
    }

    /* 滑动容器样式调整 */
    .slide-container {
        touch-action: pan-y pinch-zoom;
    }
    
    .slide-content {
        touch-action: pan-y;
    }
}

/* 超小屏幕设备的特殊处理 */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* 表格特殊处理 */
    .table-responsive {
        margin: 0 -10px;
        width: calc(100% + 20px);
    }

    /* 卡片内容调整 */
    .card-body {
        padding: 0.75rem;
    }

    /* 统计卡片进一步调整 */
    .stat-card {
        padding: 1rem;
    }

    .stat-card h2 {
        font-size: 1.75rem;
    }

    /* 导航文字大小调整 */
    .nav-pills .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* 按钮文字大小调整 */
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    /* 致谢页面进一步调整 */
    .thanks-text {
        font-size: 0.95rem;
    }

    .company-name {
        font-size: 1.1rem;
    }

    /* 表单控件调整 */
    .form-control {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    /* 间距调整 */
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .mt-4 {
        margin-top: 1rem !important;
    }

    .mt-5 {
        margin-top: 1.5rem !important;
    }

    /* 按钮在超小屏幕上的特殊处理 */
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 576px) and (orientation: landscape) {
    .container {
        margin-top: 0.5rem !important;
    }

    .stat-card {
        padding: 1rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .nav-pills {
        margin-bottom: 0.5rem !important;
    }

    .wave-bottom {
        display: none;
    }
}

/* 添加表格滚动容器样式 */
.table-scroll-container {
    position: relative;
    max-height: calc(100vh - 400px); /* 动态计算最大高度 */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* iOS 流畅滚动 */
}

/* 优化表格在滚动容器中的显示 */
.table-scroll-container .table-responsive {
    margin-bottom: 0;
    border-radius: 10px;
}

/* 修改滑动容器样式 */
.slide-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    touch-action: pan-x; /* 只允许水平滑动 */
}

.slide-content {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 2rem;
    transform: translateX(0);
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

/* 优化移动端滚动体验 */
@media (max-width: 768px) {
    .table-scroll-container {
        max-height: calc(100vh - 350px); /* 移动端调整高度 */
    }

    .table-scroll-container::-webkit-scrollbar {
        width: 4px;
    }

    .table-scroll-container::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
}

/* 滑动提示样式优化 */
.slide-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.slide-hint.show {
    opacity: 1;
    animation: hintPulse 2s infinite;
}

@keyframes hintPulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* 页面指示器样式优化 */
.slide-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(6 21 89 / 66%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide-dot.active {
    background: #4b6cb7;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(75, 108, 183, 0.5);
}

/* 添加滑动过渡动画 */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

.slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.slide-out {
    animation: slideOut 0.3s ease-out forwards;
}

/* 移动端任务卡片样式 */
.task-card .card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.task-card .card:hover {
    transform: translateY(-2px);
}

.task-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.task-card .task-info {
    font-size: 0.9rem;
}

.task-card .task-info p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* 分页组件样式优化 */
.pagination-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-info {
    white-space: nowrap;
    color: #6c757d;
    font-size: 0.95rem;
}

.pagination {
    margin: 0;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #4b6cb7;
    border: 1px solid #e9ecef;
    background-color: #fff;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, #4b6cb7, #182848);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 5px rgba(75, 108, 183, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.pagination .page-link:hover:not(.disabled) {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #4b6cb7;
    transform: translateY(-1px);
}

/* 移动端分页样式优化 */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 0.75rem;
    }

    .page-info {
        font-size: 0.85rem;
        text-align: center;
        width: 100%;
    }

    .pagination {
        justify-content: center;
        width: 100%;
    }

    .pagination .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* 在较小屏幕上隐藏部分页码 */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.prev):not(.next) {
        display: none;
    }

    .pagination .page-item.active + .page-item,
    .pagination .page-item.active - .page-item {
        display: inline-flex;
    }
}

/* 超小屏幕设备的特殊处理 */
@media (max-width: 576px) {
    .pagination-container {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .pagination .page-link {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .page-info {
        font-size: 0.8rem;
    }
}

/* 新增支付宝风格布局样式 */
.header-section {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stats-section {
    background: white;
    border-radius: 12px;
    margin: 0 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-block {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.stat-block:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4b6cb7;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.time-section {
    margin: 1rem;
}

.time-block {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.time-value {
    color: #4b6cb7;
    font-weight: 500;
}

.fault-section {
    margin: 0 1rem;
}

.section-title {
    color: #333;
    padding: 0 0.5rem;
}

.fault-total-block {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fault-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.fault-value {
    color: #4b6cb7;
    font-size: 1.2rem;
    font-weight: 600;
}

.fault-detail-block {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fault-type {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.fault-numbers {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fault-numbers .total {
    color: #4b6cb7;
}

.fault-numbers .divider {
    color: #dee2e6;
    margin: 0 0.3rem;
}

.fault-numbers .resolved {
    color: #28a745;
}

.fault-status {
    font-size: 0.8rem;
    color: #6c757d;
}

.description-section {
    margin: 0 1rem;
}

.description-block {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.description-content {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .header-section {
        padding: 1rem 0;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .stats-section,
    .time-section,
    .fault-section,
    .description-section {
        margin: 0 0.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .fault-numbers {
        font-size: 1.1rem;
    }

    .description-content {
        font-size: 0.9rem;
    }
} 